package com.vcg.java.demo;

import org.junit.Test;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by wuyu on 2016/8/15.
 */
public class DateUtilTest {
    @Test
    public void testDate() throws ParseException {



        long time16 = new SimpleDateFormat("yyyy-MM-dd").parse("1975-01-01").getTime();
        long time15 = new SimpleDateFormat("yyyy-MM-dd").parse("2016-07-02").getTime();
        System.err.println(time15);
        System.err.println(time16);
    }
}
